package cn.kai.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * Author: cKnight
 * Date: 2024/6/18
 */
@Data
@AllArgsConstructor
@Builder
@NoArgsConstructor
@ApiModel("分页响应类")
public class PageVO<T> {

    @ApiModelProperty("总条数")
    private Long totalRecord;

    @ApiModelProperty("总页数")
    private Long totalPage;

    @ApiModelProperty("响应数据列表")
    private List<T> rows;
}
